package com.controller;

import com.pojo.RouterJSON;
import com.service.RouterService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class RouterController {
    @Resource
    private RouterService routerService;

    @RequestMapping("/getRouterJSONList")
    @ResponseBody
    public List<RouterJSON> getRouterJSONList(){
        List<RouterJSON> routerJSONList = routerService.getRouterJSONList();
        return routerJSONList;
    }
}
